package com.ybu.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: cmall-ybu
 * @Titile: RegisterDTO
 * @Author: Lucky
 * @Description: 注册DTO，封装注册的数据
 */
@Data
public class RegisterDTO {
    @NotBlank(message = "注册的用户名不能为空")
    private String username;
    @NotBlank(message = "注册密码不能为空")
    @Length(max = 12,min = 6,message = "密码长度的范围为6-12")
    private String password;
    @NotBlank(message = "两次输入的密码不一致")
    private String rePassword;
}